package player_single

import "time"

const PlayerUserSingleName = "player_user_single"

type PlayerUserSingle struct {
	Id        int    `json:"id" orm:"auto" sql:"INT"`
	UserId    int    `json:"user_id" sql:"INT"`
	SingleKey string `json:"single_key" sql:"VARCHAR"`
	Times     int    `json:"times" sql:"INT"`
	Star      int    `json:"star" sql:"INT"`
	Pass      bool   `json:"pass" sql:"TINYINT"`
	LastScore int    `json:"last_score" sql:"INT"`
	BestScore int    `json:"best_score" sql:"INT"`
	LastTime  int    `json:"last_time" sql:"INT"`
	BestTime  int    `json:"best_time" sql:"INT"`

	CreateTime *time.Time `json:"create_time" orm:"createTime" sql:"DATETIME"`
	UpdateTime *time.Time `json:"update_time" orm:"updateTime" sql:"DATETIME"`

	Rank int
}
